package com.ss.android.article.base.feature.d;

import com.bytedance.common.utility.b.ThreadPlus;
import com.ss.android.article.base.feature.video.cache.VideoCacheController;
import com.ss.android.b.b.BaseVideoManager;
import com.ss.android.image.BaseImageManager;
import com.ss.android.image.FrescoUtils;

final class d extends ThreadPlus {
    private final a a;

    d(a arg1) {
        this.a = arg1;

    }

    public final void run() {
        long v0 = System.currentTimeMillis();
        new BaseImageManager(this.a.mContext).c();
        new BaseVideoManager(this.a.mContext).a();
        VideoCacheController.getInstance().clearCache();
        FrescoUtils.clearCache();
        if(System.currentTimeMillis() - v0 < 500) {
            v0 = 500;
            try {
                Thread.sleep(v0);
            }
            catch(InterruptedException v0_1) {
                v0_1.printStackTrace();
            }
        }

        this.a.b.sendEmptyMessage(4);
    }
}

